package com.addplus.townmall.server.api.model.town;

import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 分销订单合伙人佣金表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("distribution_order_partner")
@Deprecated
public class DistributionOrderPartner extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableField("order_id")
    private Integer orderId;
    /**
     * 订单项编号
     */
    @TableField("order_item_id")
    private Integer orderItemId;
    /**
     * 商品编号
     */
    @TableField("shop_id")
    private Integer shopId;
    /**
     * 下单会员
     */
    @TableField("member_id")
    private Integer memberId;
    /**
     * 商城店铺主键id
     */
    @TableField("store_id")
    private Integer storeId;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 实付金额
     */
    @TableField("real_pay_amount")
    private BigDecimal realPayAmount;
    /**
     * 利润金额
     */
    @TableField("profit_amount")
    private BigDecimal profitAmount;
    /**
     * 佣金状态
     */
    @TableField("brokerage_status")
    private Integer brokerageStatus;
    /**
     * 下单时间
     */
    @TableField("order_date")
    private LocalDateTime orderDate;
    /**
     * 结算时间
     */
    @TableField("settlement_time")
    private LocalDateTime settlementTime;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 订单类型 0 是普通订单  1 是拼团订单
     */

    @TableField("order_type")
    private Integer orderType;

    /**
     * 流水收益抽成比例
     */
    @TableField("flow_income_rate")
    private BigDecimal flowIncomeRate;
}
